package com.dao;

import com.entity.User;
import com.github.pagehelper.PageInfo;
import com.util.AjaxResult;
import com.vo.UserBackVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import com.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;
@Repository
public interface UserMapper {
//    后台登陆  pj
    public User findUserAdmin(@Param("login_name") String login_name);

//    后台分页查询所有的用户 pj
    public List<UserBackVo> findBackUser( UserBackVo userBackVo);

//    后台修改信息  潘军
    public int modifyBackUser(User user);
//	后台显示用户信息 pj
    public User showBackUser(Integer id);

//    杨跃森
    public int insertUser(@Param("u") User user);
    public User selectByname(User user);
    Integer selectByEmail(String email);
    public User selectByloginnameAndpassword(@RequestParam("login_name") String loginName);
    public int update(User user);
    public User selectById(Integer id);
    public User selectUser(String login_name);
}
